<?php
namespace Api\Plugin\InviteStrategy;

use Api\Plugin\AbstractInviteStrategy;

class SellerStrategy extends AbstractInviteStrategy{

    /**
     * 被邀请人获得一次全车体检
     */
    public function run($options = array()){


        parent::run($options);

        try{
            $memberInfo = $this->sm->get('Api\Model\MemberInfo')->select(array('MemberID' => $this->_memberID))->current();
            $this->sm->get('Api\Model\MemberOrder')->giftOrder(15, 358, $this->_memberID, $memberInfo['CarModel'], array('Source' => '被邀请奖励'));
        }catch (\Exception $e){

        }


    }
}